import requests
import threading


def req():
    count_1 = 1
    count_2 = 1
    for i in range(10):
        count_1 += 1
        count_2 += 1
        threading.Thread(target=ret, args=(count_1, count_2,)).start()


def ret(count_1, count_2):
    rs = requests.session()
    url = 'http://localhost:8888/upload/register.php?'
    data = {'regemail': '64877227%s@qq.com' % count_1, 'step': '2', 'regpwd': 'test_%s' % count_2,
            'regname': 'test_%s' % count_2, 'forward': '', 'regpwdrepeat': 'test_%s' % count_2, 'rgpermit': 'a.txt'}
    rs.post(url, data=data)


req()
